<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019-02-19
 * Time: 14:53
 */

namespace app\admin\validate;


use think\Validate;

class Project extends Validate
{
    protected $rule = [
        'p_name'            => 'require',
        'p_profit'          => 'require',
        'p_num'             => 'require',
    ];
    protected $message = [
        'p_name.require'              => '证券名称不能为空',
        'p_profit.unique'             => '收益利率不能为空',
        'p_num.confirm'               => '每天抢购数量不能为空',
    ];
}